function getSMCInstance(slot:String)
{
	return mlf.mcmanager.SMCManager.getInstance(slot);
}

function scanElement(slot:String, ins:String)
{
	return mlf.gatekeeper.native.Caller.scanElement(slot, ins);
}

function floatingRegion(x, y, height, width, align:String):Object
{
	return mlf.stylecontrol.stagestyle.StageAgent.floatingRegion(x, y, height, width, align);
}

function mlPlayerControl(type:String, param)
{
	return applications.prototype.Logic.run(type, param);
}

function dispatchMessage(obj:Object)
{
	mlf.mcmanager.MessageAgent.getMessageDispatcher().dispatch(obj);
}

function addListener(type:String, ins)
{
	mlf.mcmanager.MessageAgent.getMessageDispatcher().addEventListener(type, ins);
}

function removeListener(type:String, ins)
{
	mlf.mcmanager.MessageAgent.getMessageDispatcher().removeEventListener(type, ins);
}

function saveLSO(soName:String, info)
{
	return mlf.gatekeeper.native.Caller.saveLSO(soName, info);
}

function loadLSO(soName:String)
{
	return mlf.gatekeeper.native.Caller.loadLSO(soName);
}

function scanDictionary(path:MovieClip, key:String)
{
	return mlf.gatekeeper.native.Caller.scanDictionary(path, key);
}

function invoke(callbackObj:Object)
{
	var target=mlf.mcmanager.PathResolver.extractPath(callbackObj.path);
	if (target!=null) mlf.gatekeeper.native.Caller.callee(target, callbackObj.func, callbackObj.args);
}

function accessDefaultConnection():NetConnection 
{
    return mlf.mcmanager.MessageAgent.getMessageSlot("mlf", "defaultConnection");
}

function loadConfiguration():Object
{
	return mlf.mcmanager.MessageAgent.getMessageSlot("mlf", "config");
}

function rtmpCaller(item:Object)
{
	/*trace("rtmpCaller.item message");
	for (var a in item)
	{
		trace(a+": "+item[a]);
		for (var b in item[a])
		{
			trace(b+": "+item[a][b]);
		}
	}*/
	var nc:NetConnection;
	nc=accessDefaultConnection();
	if (nc.isConnected==true)
	{
		if (item.type!=null) 
		{
			nc.call(item.type, item.result, item.param);
		}
	}
}